﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    修改用户信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        修改用户信息
    </h2>
    <div>
    <%if (ViewData["errMsg"] != null)
      {%>
    <%:ViewData["errMsg"].ToString()%>
    <%} %>
    </div>
    <form id="form1" method="post" action="/User/EditUser?userName=<%:ViewData["userName"].ToString() %>">
    <table>
        <tr>
            <td>
                用户名：
            </td>
            <td>
                <input type="text" id="txtUserName" name="txtUserName" disabled="disabled" value="<%:ViewData["userName"].ToString() %>" />
            </td>
        </tr>
        <tr>
            <td>
                密码：
            </td>
            <td>
                <input type="text" id="txtLoginPassword" name="txtLoginPassword" value="<%:ViewData["userPassword"].ToString() %>" />
            </td>
        </tr>
        <tr>
            <td>
                邮箱：
            </td>
            <td>
                <input type="text" id="txtEmail" name="txtEmail" value="<%:ViewData["userEmail"].ToString() %>" />
            </td>
        </tr>
    </table>
    </form>
    <div>
        <%: Html.ActionLink("返回首页", "Index") %>
    </div>
</asp:Content>
